home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / crtex / ex16.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  320 b   |  19 lines

  1. Program Example16;
  2. uses Crt;
  3.  
  4. { Program to demonstrate the Sound and NoSound function. }
  5.  
  6. var
  7.   i : longint;
  8. begin
  9.   WriteLn('You will hear some tones from your speaker');
  10.   while (i<15000) do
  11.    begin
  12.      inc(i,500);
  13.      Sound(i);
  14.      Delay(100);
  15.    end;
  16.   WriteLn('Quiet now!'); 
  17.   NoSound; {Stop noise}      
  18. end.
  19.